#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
    int N;
    cin >> N;
    float * p = new float[N];
    float sum = 0;
    float max = 0;
    float min = 100;
    for(int i = 0; i<N; i++)
    {
        float temp;
        cin >> temp;
        p[i] = temp;
        sum = sum + temp;
        if(temp > max)
            max = temp;
        if(temp < min)
            min = temp;
        
    }
    cout << "average = " << fixed << setprecision(2) << sum /(float)N << endl;
    cout << "max = " <<fixed << setprecision(2) <<max << endl;
    cout << "min = " <<fixed << setprecision(2) <<min << endl;
    delete [] p;  //不要忘了，尽管不影响答案
}